package cn.enilu.guns.bean.entity.door;


import lombok.Data;
import cn.enilu.guns.bean.entity.BaseEntity;
import org.hibernate.annotations.Table;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;

@Entity(name="T_ENTRANCE_GUARD_DOOR")
@Table(appliesTo = "t_entrance_guard_door",comment = "门与门禁权限对应表")
@Data
@EntityListeners(AuditingEntityListener.class)
public class EntranceGuardDoor extends BaseEntity {

	/**
	 * 
	 */
	@Column(columnDefinition = " INT(10) COMMENT ''")
	private Integer version;

	/**
	 * 门id
	 */
	@Column(columnDefinition = " BIGINT(19) COMMENT '门id'")
	private Long doorId;

	/**
	 * 权限id
	 */
	@Column(columnDefinition = " BIGINT(19) COMMENT '权限id'")
	private Long ruleId;

	/**
	 * 设备id
	 */
	@Column(columnDefinition = " BIGINT(19) COMMENT '设备id'")
	private Long equipmentId;


}
